
public class Java_2 {
	public static void main(String[] args) {
		int b = 0;
		for (int i = 2; i <= 10000; i++) {
			for (int a = 2; a <= i; a++) {
				if (i % a == 0 && i != a) {
					break;
				}
				if (i % a == 0 && i == a) {
					b++;
				}
			}
		}
		System.out.println(b);
	}
}
